<?php

$GLOBALS['tb_cash'] = 'pokladna';
$GLOBALS['tb_changes'] = 'changes';
$GLOBALS['tb_clients'] = 'klienti';
$GLOBALS['tb_filters'] = 'filters';
$GLOBALS['tb_fixed_expense'] = 'fixed_expense';
$GLOBALS['tb_last_email_processing'] = 'last_email_processing';
$GLOBALS['tb_locks'] = 'locks';
$GLOBALS['tb_notifications'] = 'notifications';
$GLOBALS['tb_ref_user_clients'] = 'ref_user_clients';
$GLOBALS['tb_records'] = 'records';
$GLOBALS['tb_record_phorum'] = 'record_phorums';
$GLOBALS['tb_tariffs'] = 'sadzby';
$GLOBALS['tb_tasks'] = 'tasks';
$GLOBALS['tb_task_phorum'] = 'task_phorums';
$GLOBALS['tb_task_priorities'] = 'priorita';
$GLOBALS['tb_task_statuses'] = 'stav_uloh';
$GLOBALS['tb_task_type_of_operations'] = 'type_of_operations';
$GLOBALS['tb_task_type_of_problems'] = 'type_of_problems';
$GLOBALS['tb_task_type_operation_with_user'] = 'task_type_operation_with_user';
$GLOBALS['tb_task_type_order_of_goods'] = 'task_type_order_of_goods';
$GLOBALS['tb_task_types'] = 'task_types';
$GLOBALS['tb_type_of_cash_move'] = 'typpohybupokladne';
$GLOBALS['tb_type_of_cooperations'] = 'clients_type_of_cooperation';
$GLOBALS['tb_type_of_goods'] = 'type_of_goods';
$GLOBALS['tb_type_of_records'] = 'typpolozkyprotokolu';
$GLOBALS['tb_user_options'] = 'user_options';
$GLOBALS['tb_users'] = 'uzivatelia';
$GLOBALS['tb_userslevels'] = 'userlevels';
$GLOBALS['tb_user_areas'] = 'user_areas';

$GLOBALS['userLevels'] = array (
    1 => 'Client',
    2 => 'Technic',
    3 => 'Admin'
);

$GLOBALS['positiveMovesOfCash'] = array(8, 13, 14);
$GLOBALS['bothMovesOfCash'] = 15;

$GLOBALS['list_of_tasks_pager'] = 20; 
$GLOBALS['list_of_tasks_order'] = array(
    'col' => 'priority',
    'orderBy' => 'Priorita',
    'order' => 'ASC',
    'table' => $GLOBALS['tb_task_priorities'],
    'connector' => 'priority='.$GLOBALS['tb_task_priorities'].'.id',
    'second' => 'deadline ASC'
); 

$GLOBALS['list_of_clients_pager'] = 20; 
$GLOBALS['list_of_clients_order'] = array(
    'col' => 'name',
    'orderBy' => 'name',
    'order' => 'ASC',
    'table' => '',
    'connector' => ''
); 

$GLOBALS['list_of_users_pager'] = 20; 
$GLOBALS['list_of_users_order'] = array(
    'col' => 'surname',
    'orderBy' => 'surname',
    'order' => 'ASC',
    'table' => '',
    'connector' => ''
); 

$GLOBALS['cash_pager'] = 100; 
$GLOBALS['cash_order'] = array(
    'col' => 'created',
    'orderBy' => 'created',
    'order' => 'DESC',
    'table' => '',
    'connector' => ''
); 

$GLOBALS['list_of_tariffs_pager'] = 20; 
$GLOBALS['list_of_tariffs_order'] = array(
    'col' => 'title',
    'orderBy' => 'title',
    'order' => 'ASC',
    'table' => '',
    'connector' => ''
); 

$GLOBALS['timesheets_pager'] = 20; 
$GLOBALS['timesheets_order'] = array(
    'col' => 'date',
    'orderBy' => 'date',
    'order' => 'DESC',
    'table' => '',
    'connector' => ''
); 

$GLOBALS['days_short'] = array(
    'sk' => array("Ne","Po","Ut","St","Št","Pi","So","Ne")
);

// settings
define("SESSION_EXPIRATION_LIMIT", 3600);
define("MAX_DEADLINE", '31/12/2030');
define("MAX_DEADLINE_DB", '2030-12-31');

define("ACTIVE_TASK", 1);
define("COMPLETED_TASK", 2);

define("USER_TYPE_CLIENT",1);
define("USER_TYPE_TECHNIC",2);
define("USER_TYPE_ADMIN",3);

define("TASK_ACTION_WRITE",'addTask');
define("TASK_ACTION_SEND",'send');
define("TASK_ACTION_COMPLETE",'complete');
define("TASK_ACTION_RECORD",'record');

define("NOTIFY_USER", "AlfaCM");
define("NOTIFY_EMAIL", "veliky@alfac.sk");
define("NOTIFY_SUBJECT", "CM notification");

define("EMAIL_SENT", 1);
define("EMAIL_NOT_SENT", 0);
define("EMAIL_DB_SENT", 2);

define("EMAIL_ERROR_EMPTY_ADDRESS", "Email was not sent. Email address is empty!");
define("EMAIL_ERROR_NOT_SENT", "Email was not sent!");

define("DPH", 0.2);

define("CHANGES_TYPE_TASK", 1);
define("CHANGES_TYPE_TSDR", 2);

define("CHANGES_STATUS_NEW", 1);
define("CHANGES_STATUS_UPDATED", 2);

define("TSDR_DESCRIPTION_MAX_LENGTH", 1024);
?>
